package org.client.iot.ui.device.adapter;

import android.content.Context;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.client.iot.R;
import org.client.iot.domain.DataListDto;
import org.client.iot.domain.DebugData;
import org.client.iot.domain.HoleDto;

public class AgingDataAdapter extends BaseQuickAdapter<DataListDto, BaseViewHolder> {

    public AgingDataAdapter(Context mContext) {
        super(R.layout.content_device_debug_data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, DataListDto dataListDto) {
        baseViewHolder.setText(R.id.textView_debug_item_title, "第 " + dataListDto.getId() + " 次测量");
        baseViewHolder.setText(R.id.textView_debug_item_data, "测量深度：" + dataListDto.getDepthMeter());
    }
}
